package com.xiyounet.login.controller;

import com.xiyounet.login.service.LoginService;
import com.xiyounet.login.vo.LoginParam;
import com.xiyounet.login.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登录接口
 */
@RestController
public class LoginController {

    @Autowired
    private LoginService loginService;

    @PostMapping("/login")
    public Result doLogin(@RequestBody LoginParam loginParam){

        return loginService.login(loginParam);
    }






}
